package appinfo.service;

import appinfo.mapper.AppVersionMapper;
import appinfo.pojo.AppVersion;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class AppVersionServiceImpl implements AppVersionService {
    @Resource
    private AppVersionMapper appVersionMapper;
    @Override
    public AppVersion findVersion(String vid) {
        Integer id = Integer.parseInt(vid);
        return appVersionMapper.findVersion(id);
    }

    @Override
    public List<AppVersion> findAppVersionPage(Integer id) {
        return appVersionMapper.findAppVersionPage(id);
    }

    @Override
    public int delFile(Integer id) {
        return appVersionMapper.delFile(id);
    }
}
